package com.xiaoguang.selecttext

import android.widget.TextView

open class OnSelectListenerImpl : OnSelectListener {
    override fun onTextSelected(content: CharSequence?) = Unit
    override fun onSelectAllPopShow(anchor: TextView) = Unit
    override fun onSelectAllPopDismiss() = Unit
    override fun onSelectPopShow(anchor: TextView,selectionInfo: SelectionInfo) = Unit
    override fun onSelectPopDismiss() = Unit
    override fun onDestroy() = Unit
}

interface OnSelectListener {
    fun onTextSelected(content: CharSequence?) // 选中文本回调
    fun onSelectAllPopShow(anchor: TextView) // 全选显示弹窗回调
    fun onSelectAllPopDismiss() // 解除全选弹窗回调
    fun onSelectPopShow(anchor: TextView,selectionInfo: SelectionInfo) // 选择显示弹窗回调
    fun onSelectPopDismiss() // 解除选择弹窗回调
    fun onDestroy() // 正在销毁
}

interface ItemClickListener{
    fun onClick(operator:Int)
}